/**
 * 注册
 */
export type RegisterForm = {
  tenantId: string;
  username: string;
  password: string;
  confirmPassword?: string;
  code?: string;
  uuid?: string;
  userType?: string;
};

/**
 * 登录请求
 */
export interface LoginData {
  captcha?: string;
  sydId?: string;
  tenantId?: string;
  username?: string;
  password?: string;
  rememberMe?: boolean;
  socialCode?: string;
  socialState?: string;
  source?: string;
  code?: string;
  uuid?: string;
  clientId?: string;
  grantType?: string;
  [key: string]: any;
}

/**
 * 登录响应
 */
export interface LoginResult {
  access_token: string;
}

/**
 * 验证码返回
 */
export interface VerifyCodeResult {
  captchaEnabled: boolean;
  uuid?: string;
  img?: string;
}

/**
 * 租户
 */
export interface TenantVO {
  companyName: string;
  domain: any;
  tenantId: string;
}

export interface TenantInfo {
  tenantEnabled: boolean;
  voList: TenantVO[];
}

export interface WebSiteInfo {
  busId: string;
  busName: string;
  copyright: string;
  copyrightUrl: string;
  createBy: string;
  domainName: string;
  homePageLogo: string;
  hotline: string;
  smsSign: string;
  [Key: string]: any;
}

export interface Provider {
  id: string;
  busCode: string;
  busId: string;
  busName: string;
  izSign: string;
  providerCode: string;
  providerId: string;
  providerName: string;
  roleCode: string;
  [Key: string]: any;
}
